﻿/*
* Activity Tracking Log v0.1.1 - http://activitytrackinglog.codeplex.com
* Activity Tracking Log for ASP.Net & ASP.Net MVC
* Copyright (c) 2011 Vadim Burac
* Licensed under the Microsoft Public License (Ms-PL)
* http://activitytrackinglog.codeplex.com/license
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ActivityTrackingLog.Utils;
using System.Reflection;

namespace ActivityTrackingLog.Web.Utils
{
    public class ColumnData
    {
        public Enums.SortDirectionEnum SortDirection { get; set; }
        public string Name { get; set; }
        public bool Visible { get; set; }
        public PropertyInfo PropertyInfo { get; set; }

        public ColumnData(string name, 
            PropertyInfo prop = null, 
            Enums.SortDirectionEnum sortDirection = Enums.SortDirectionEnum.None, 
            bool visible = true)
        {
            this.Name = name;
            this.SortDirection = sortDirection;
            this.Visible = visible;
            this.PropertyInfo = prop;
        }
    }

    public static class ColumnListExtensions
    {
    }
}
